<template>
  <div>
    <el-table :data="users" v-loading="loading" style="width: 92%;margin: 20px auto">
      <el-table-column prop="productname" label="姓名">
      </el-table-column>
      <el-table-column prop="productnamenum" label="性别" sortable>
      </el-table-column>
      <el-table-column prop="productnametaste" label="手机号码">
      </el-table-column>
      <el-table-column prop="productnamesize" label="身份证">
      </el-table-column>
      <el-table-column prop="productnametaste" label="申请时间">
      </el-table-column>
      <el-table-column
        label="操作"
        width="100"
      >
        <template slot-scope="scope">
          <el-button type="text" size="primary" @click="reviseProxy=true">修改</el-button>
          <el-button type="text" size="primary" @click="deleteItem">删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <el-dialog
      title="修改代理"
      :visible.sync="reviseProxy"
      width="40%"
    >
      <el-form labelWidth="100px">
        <el-form-item label="姓名">
          <el-input></el-input>
        </el-form-item>
        <el-form-item label="性别">
          <el-radio-group v-model="userSex">
            <el-radio label="男"></el-radio>
            <el-radio label="女"></el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="联系方式">
          <el-input></el-input>
        </el-form-item>
        <el-form-item label="身份证号码">
          <el-input></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="reviseProxy = false">取 消</el-button>
        <el-button type="primary" @click="reviseProxy = false">修 改 </el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      reviseProxy: false,
      users: [{
        number: '2',
        productname: '1',
        productnamenum: '1',
        productnamesize: '1',
        productnametaste: '1',
        producttime: '1',
      }],
    };
  },
};
</script>

<style>

</style>
